﻿package mortal.game.view.task.guild
{
    import com.mui.controls.*;
    import com.mui.display.*;
    import extend.language.*;
    import fl.data.*;
    import flash.text.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.component.window.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.view.common.*;

    public class GuildTaskShareListWin extends BaseWindow
    {
        private var _bg:ScaleBitmap;
        private var _list:GTileList;
        private var _txt:GTextFiled;

        public function GuildTaskShareListWin()
        {
            super.layer = LayerManager.windowLayer;
            this.setSize(285, 580);
            this.title = Language.getString(21182);
            return;
        }// end function

        public function updateDatas(param1:DataProvider) : void
        {
            this._list.dataProvider = param1;
            this._list.drawNow();
            if (param1.length > 0)
            {
                DisplayUtil.removeMe(this._txt);
            }
            return;
        }// end function

        override public function show(param1:int = 0, param2:int = 0) : void
        {
            super.show(param1, param2);
            GameProxy.task.guildTaskGetShareList();
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bg = UIFactory.bg(11, 31, 267, 546, this);
            this._list = UIFactory.tileList(12, 35, 280, 512, this);
            this._list.rowHeight = 51;
            this._list.columnWidth = 275;
            this._list.setStyle("cellRenderer", GuildTaskShareListRender);
            this._list.columnCount = 1;
            var _loc_1:* = GlobalStyle.textFormatHuang;
            _loc_1.size = 20;
            this._txt = UIFactory.gTextField(Language.getString(21183), 102, 240, 150, 40, this, _loc_1);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._list.dispose(param1);
            this._list = null;
            this._txt.dispose(param1);
            this._txt = null;
            this._bg.dispose();
            this._bg = null;
            return;
        }// end function

    }
}
